import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
// import reg from '@/components/reg'
// import login from '@/components/login'
// import uploadimg from '@/components/uploadimg'
// import ypupload from '@/components/ypupload'


import Log from '@/components2/log'
import addgoods from '@/components2/addgoods'
import chanpin from '@/components2/chanpin'
import ding from '@/components2/ding'
import dan from '@/components2/dan'
import dingdan from '@/components2/dingdan'
import dinglist from '@/components2/dinglist'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    // {
    //   path: '/reg',
    //   name: 'reg',
    //   component: reg
    // },
    // {
    //   path: '/login',
    //   name: 'login',
    //   component: login
    // },
    // {
    //   path: '/uploadimg',
    //   name: 'uploadimg',
    //   component: uploadimg
    // },
    // {
    //   path: '/ypupload',
    //   name: 'ypupload',
    //   component: ypupload
    // },




    {
      path: '/log',
      name: 'log',
      component: Log
    },
    {
      path: '/addgoods',
      name: 'addgoods',
      component: addgoods
    },
    {
      path: '/chanpin',
      name: 'chanpin',
      component: chanpin
    },
    {
      path: '/ding',
      name: 'ding',
      component: ding
    },
    {
      path: '/dan',
      name: 'dan',
      component: dan
    },
    {
      path: '/dingdan',
      name: 'dingdan',
      component: dingdan
    },
    {
      path: '/dinglist',
      name: 'dinglist',
      component: dinglist
    },
  ]



})
